<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        table {
            border-collapse: collapse;
        }
        
        table tr td {
            border: 1px solid gray
        }
    </style>
</head>

<body>
    <div id="app">
        <table class="aa">
            <tr>
                <td>id</td>
                <td>姓名</td>
                <td>性别</td>
                <td>联系方式</td>
                <td>年龄</td>
            </tr>
            <tr v-for='item in stu'>
                <td>{{item.id}}</td>
                <td>{{item.name}}</td>
                <td>{{item.sex}}</td>
                <td>{{item.phone}}</td>
                <td>{{item.age}}</td>
            </tr>


        </table>


    </div>
    <script src="./js/vue.js"></script>
    <script>
        var app = new Vue({
            el: "#app",
            data: {
                username: "",
                age: "",
                tel: "",
                gender: "",
                stu: [{
                    id: 1,
                    name: '张三',
                    sex: '男',
                    phone: '13412345678',
                    age: 18,
                }, {
                    id: 2,
                    name: '李四',
                    sex: '男',
                    phone: '13412345678',
                    age: 20,
                }, {
                    id: 3,
                    name: '王五',
                    sex: '男',
                    phone: '13412345678',
                    age: 19,
                }, {
                    id: 4,
                    name: '小淘气',
                    sex: '男',
                    phone: '13412345678',
                    age: 17,
                }],

            }
        })
    </script>
</body>

</html>